package io.kiki.sba.registry.server.clientInterface.push;

import io.kiki.sba.registry.common.model.store.Subscriber;

import java.util.List;

final class RegHandlerImpl implements RegHandler {

    private final FirePushService firePushService;

    public RegHandlerImpl(FirePushService firePushService) {
        this.firePushService = firePushService;
    }

    @Override
    public boolean onReg(String dataInfoId, List<Subscriber> subscriberList) {
        return firePushService.doExecuteOnReg(dataInfoId, subscriberList);
    }
}
